import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';

export default class CascaderSelectComponent extends Component {
  @tracked subKey;

  @action
  changeParentKey(item) {
    this.subKey = this.args.subKeyPrefix + item.id;

    // 清空组件b的值
    document.getElementsByName(this.args.name2)[0].value = '';
    document.getElementsByName('text-' + this.args.name2)[0].value = '';
  }
}
